package com.vcg.filter.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.vcg.filter.beans.BaseEntity;
import com.vcg.filter.beans.FollowEntity;
import com.vcg.filter.service.AbstractService;

/**
 * @author fyq on
 * @created by 2016/6/6
 */
public class FollowServiceImpl extends AbstractService {
    public FollowEntity get(JSONObject jsonObject) {
        jsonObject = getJSON(jsonObject);
        return JSONObject.toJavaObject(jsonObject, FollowEntity.class);
    }

    public void save(BaseEntity t) {
        dynamoDBMapper.save((FollowEntity)t);
    }
}
